﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class AttendanceManage
    {
        public Attendance GetAttendance(string memberid, int activityid) 
        {
            try
            {
                AttendanceService dalattendance = new AttendanceService();
                return dalattendance.GetAttendance(memberid, activityid);
            }catch (Exception ex) { throw new Exception(ex.ToString()); }
        }
        public bool AddAttendance(Attendance attendance) 
        {
            try
            {
                AttendanceService dalattendance = new AttendanceService();
                return dalattendance.AddAttendance(attendance);
            }
            catch (Exception ex) { throw new Exception(ex.ToString()); }
        }
        public bool UpdateAttendance(Attendance attendance)
        {
            try
            {
                AttendanceService dalattendance = new AttendanceService();
                return dalattendance.UpdateAttendance(attendance);
            }
            catch (Exception ex) { throw new Exception(ex.ToString()); }
        }
    }
}
